package com.example.myapplication10;

import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import java.util.Map;

public class BookingRecordActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_booking_record);

        TextView tvRecords = findViewById(R.id.tvRecords);
        StringBuilder recordsText = new StringBuilder();

        for (Map.Entry<String, java.util.List<String>> entry : BookingDetailActivity.bookingRecords.entrySet()) {
            String counselorName = entry.getKey();
            java.util.List<String> records = entry.getValue();

            recordsText.append(counselorName).append(":\n");
            for (String record : records) {
                recordsText.append("  ").append(record).append("\n");
            }
            recordsText.append("\n");
        }

        tvRecords.setText(recordsText.toString());
    }
}